<?php  if ( ! defined('BASEPATH')) exit('No direct script access allowed');

class Founder_model extends CI_Model
{
	
	public function __construct()
	{
		parent::__construct();

	}
	
	public function get_recent_tasks()
	{
		return $this->db->order_by('id','DESC')->get('tasks',5)->result();
	}
	
	public function active_user()
	{
		return $this->db->get_where('users',array('online_status'=>1))->result();		
	}
	
	public function inactive_user()
	{
		return $this->db->get_where('users',array('online_status'=>0))->result();		
	}
	
}
